package com.yy.invoice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.invoice.entity.Invoice;
import com.yy.invoice.entity.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yang1yu
 * @since 2022-09-27
 */
public interface InvoiceService extends IService<Invoice> {

    Result select(HttpServletRequest request);

    Result selectByMonth(String month, HttpServletRequest request);

    Result sumByMonth(String month, HttpServletRequest request);

    Result delete(List<Invoice> invoice, HttpServletRequest request);

    Result updateInvoice(String invoiceCode, String invoiceNum, String validate, String totalAmount, Integer invoiceId);
}
